package com.zoro.dyformservice.support;

import com.zoro.dyformservice.support.es.EsConfig;
import com.zoro.dyformservice.support.threadutil.ThreadConfigProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @author zhaoxingwu
 */
@ConfigurationProperties(prefix = "dy.config")
@Component
public class DyFormSystemProperties {

    private String domain = "http://localhost:18080";
    private String uri = "/login";

    private Set<String> ignoreUriSet;

    private EsConfig es = new EsConfig();

    private ThreadConfigProperties thread = new ThreadConfigProperties();

    public Set<String> getIgnoreUriSet() {
        return ignoreUriSet;
    }

    public void setIgnoreUriSet(Set<String> ignoreUriSet) {
        this.ignoreUriSet = ignoreUriSet;
    }

    public ThreadConfigProperties getThread() {
        return thread;
    }

    public void setThread(ThreadConfigProperties thread) {
        this.thread = thread;
    }

    public EsConfig getEs() {
        return es;
    }

    public void setEs(EsConfig es) {
        this.es = es;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Set<String> getIgnoreUri() {
        return ignoreUriSet;
    }

    public void setIgnoreUri(Set<String> ignoreUriSet) {
        this.ignoreUriSet = ignoreUriSet;
    }
}
